package com.example.service;

import com.example.entity.Course;

import java.util.List;

public interface CourseService {
    Course getCourseById(Integer courseid);
    List<Course> getAllCourses();
    boolean addCourse(Course course);
    boolean updateCourse(Course course);
    boolean deleteCourse(Integer courseid);
    List<Course> findCoursesByPage(int page, int pageNum);
    int totalPage(int pageNum);
}